package com.proxy.scanandcheck.common.util;

public interface Constants {
	
	//DB connection string
	final String URL = "jdbc:mysql://localhost:3306/test";
	final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
	final String USER = "root";
	final String PASSWORD = "12345";
		
	final String PROXIES_TXT_PATH = "data/proxies.txt";
	
	final String POSSIBLE_PROXIES_TXT_PATH = "/ip-range-list.txt";
	
	final String GOOGLE_HOST_NAME = "www.google.com";
	
	final String HTTP_SCHEME = "http";
	final Integer PORT_80 = 80;
    
	//connect to proxy time out setting
    final Integer CONNECTION_TIMEOUT = 10000;
	final Integer READ_TIMEOUT = 10000;
	final Integer CONNECTION_MANAGER_TIMEOUT = 50000;
	
	//Thread pool
	final int CORE_POOL_SIZE = 5;
	final int MAX_POOL_SIZE = 10;
	final int KEEP_ALIVE_TIME = 100;
	final int QUEUESIZE = 50;
	
	final int IP_RANGE_SIZE_MIN = 250;
	final int IP_RANGE_SIZE_MAX = 250;
	
	final String AClassStartIp = "1.0.0.1";
	final String AClassEndIp = "126.255.255.254";
	final long AClassStartIpLong = 16777217;
	final long AClassEndIpLong = 2130706430;
	
//	final String AClassStartIp = "209.160.66.215";
//	final String AClassEndIp = "209.160.66.230";
	//209.160.66.215:8080
	
	final String BClassStartIp = "128.0.0.1";
	final String BClassEndIp = "191.255.255.254";
	final long BClassStartIpLong = 2147483649l;
	final long BClassEndIpLong = 3221225470l;
	
	final String CClassStartIp = "192.0.0.1";
	final String CClassEndIp = "223.255.255.255";
	final long CClassStartIpLong = 3221225473l;
	final long CClassEndIpLong = 3758096383l;
	
	final int [] PORTS = {80,8080,8888,3128}; //65535
	final int [] ANOTHER_PORTS = {7212,8080,8000,1080,3128,6588};
	
	final String [] GOOGLE_REGEX_STRING = {"Google Search</title>"};

}
